package com.example.test_system.model;

import java.util.List;

public class SingleChoice implements Question {
    private int sc_id;
    private String topic;
    private String items;
    private int answer;

    public SingleChoice(int sc_id, String topic, String items, int answer) {
        this.sc_id = sc_id;
        this.topic = topic;
        this.items = items;
        this.answer = answer;
    }

    public int getSc_id() {
        return sc_id;
    }

    public String getTopic() {
        return topic;
    }

    public String getItems() {
        return items;
    }

    public int getAnswer() {
        return answer;
    }

    public void setSc_id(int sc_id) {
        this.sc_id = sc_id;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public void setItems(String items) {
        this.items = items;
    }

    public void setAnswer(int answer) {
        this.answer = answer;
    }

    @Override
    public String toString() {
        return "SingleChoice{" +
                "sc_id=" + sc_id +
                ", topic='" + topic + '\'' +
                ", items='" + items + '\'' +
                ", answer=" + answer +
                '}';
    }
}
